package org.example.controller;

import org.example.service.IPhoneGoodBrandService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/phone-good-brand")
public class PhoneGoodBrandController {
    @Resource
    private IPhoneGoodBrandService phoneGoodBrandService;
    @GetMapping
    public Result get(Integer id){
        return Result.buildSuccess(phoneGoodBrandService.getByPhoneGoodBrand(id));
    }

}
